package top.ochiamalu.aioj.converter;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import top.ochiamalu.aioj.domain.entity.Set;
import top.ochiamalu.aioj.domain.vo.set.SetVO;

import java.util.List;

/**
 * 题集转换器
 *
 * @author OchiaMalu
 * @date 2024/12/23
 */
@Mapper
public interface SetConverters {
    SetConverters INSTANCE = Mappers.getMapper(SetConverters.class);

    /**
     * 转换实体到vo
     *
     * @param setList 设置列表
     * @return {@link List }<{@link SetVO }>
     */
    List<SetVO> convertEntity2VO(List<Set> setList);
}
